package com.framework.modules.job.task;

import com.framework.service.ActiveService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * 功能描述: 激活返现定时器
 *
 * @author ck
 * @date 2018/11/17 17:04
 */
@Component("activRep")
public class ActivRepTask {
	private Logger logger = LoggerFactory.getLogger(getClass());

	@Autowired
	private ActiveService activeService;

	/**
	 * 每天通用终端激活返现定时器
	 */
	public void addActivRep(){
		logger.debug("===============激活返现定时器开始==============");
		//通用终端激活返现
		activeService.addActivRepCurr();
		logger.debug("===============激活返现定时器结束==============");
	}

}
